package com.osmino.contacts;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;

import com.osmino.contacts.model.contacts.IContact;
import com.osmino.contacts.view.base.BaseView;
import com.osmino.contacts.view.base.Tab.TabClient;
import com.osmino.contacts.view.dialer.Dialer.DialerClient;
import com.osmino.contacts.view.list.ContactListView.ListViewClient;

public class LaunchActivity extends Activity implements TabClient, DialerClient, ListViewClient {
    /** Called when the activity is first created. */
	
	private BaseView bv;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
//        Dialer d = new Dialer(this, new DialerClient() {
//			
//			@Override
//			public void onCall(String phoneNumber) {
//				// TODO Auto-generated method stub
//				
//			}
//		}, new Default());
        bv = new BaseView(this);
        setContentView(bv);
    }

	@Override
	public void onTabClick(View v) {
		System.out.println(v.getId());
		bv.bringToFrontById(v.getId());
	}

	@Override
	public void onCall(String phoneNumber) {
		System.out.println(phoneNumber);
	}

	@Override
	public void onContactClick(IContact contact) {
		System.out.println(contact.toString());
	}
}